package com.jzg.sys.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 权限：资源
 * </p>
 *
 * @author lzp
 * @since 2019-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SEC_AUTHORITY_RESOURCE")
public class SecAuthorityResource extends Model<SecAuthorityResource> {

    private static final long serialVersionUID = 1L;

    /**
     * 权限:资源D
     */
    @TableId("AUTHORITY_RESOURCE_ID")
    private String authorityResourceId;

    /**
     * 权限ID
     */
    @TableField("AUTHORITY_ID")
    private String authorityId;

    /**
     * 资源ID
     */
    @TableField("RESOURCE_ID")
    private String resourceId;


    @Override
    protected Serializable pkVal() {
        return this.authorityResourceId;
    }

}
